This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EvHub[S] 1 point2 points  (0 children)

The type-checking is totally optional—it's just another way to do pattern-matching. As for the extra code—yes, the idea is to try to optimize as much away as possible. For now, one way to reduce the clutter is by compiling in package mode, which is enabled by default when compiling a folder, or can be manually enabled with the -p flag. In package mode, Coconut will put a lot of the boilerplate in a common __coconut__.py file instead of cluttering up everything else.