Colin Adams
2016-05-09 19:48:01 UTC
I'm thinking about whether of not to wrap Ptrs in data types to get more
type safety. It seems like a no-brainer, but I'm not keen on adding the
slight performance hit I'd get if I used a data declaration with one
constructor, or a record with one Ptr field. Can either of these have the
overhead erased at runtime, like Haskell's newtype? Or is there another
construct?
type safety. It seems like a no-brainer, but I'm not keen on adding the
slight performance hit I'd get if I used a data declaration with one
constructor, or a record with one Ptr field. Can either of these have the
overhead erased at runtime, like Haskell's newtype? Or is there another
construct?
--
You received this message because you are subscribed to the Google Groups "Idris Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idris-lang+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Idris Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idris-lang+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.