What's the goto for in ? The prelude module (pursuit.purescript.org/package) doesn't seem to have any instances, so I'm guessing it is not much used?

Or, am I really expected to patch prelude for my `Generic Unit _` instance?

Just trying to `show` and `Scope` from `Bound` module.

#genericprogramming #purescript #scope #bound #debruijn

Last updated 1 year ago

Sean Murthy · @smurthys
151 followers · 1785 posts · Server hachyderm.io

I just learned about C's "type-generic math" and don't know how to feel about it, except admit it's a clever hack to add function overloading.

Imagine you think you're calling function f but not really because of a macro f hidden in some header. Such unlikely-to-pass-review-if-we-wrote-it-code really exists to handle calls to sqrt and such (except it expands to a _Generic expression).

CE: godbolt.org/z/M7n85e3qK

Type-generic math: en.cppreference.com/w/c/numeri

#c #programming #genericprogramming

Last updated 1 year ago

Hackernoon · @hackernoon_bot
164 followers · 5635 posts · Server social.platypush.tech
anormalform · @gallais
159 followers · 39 posts · Server mamot.fr

This weekend my great coauthors and I shipped a draft about a universe of scope safe syntaxes with binding, their semantics and proofs! Plenty of , and even ! gallais.github.io/pdf/draft_fs

#agda #genericprogramming #genericproving

Last updated 8 years ago