Feature: Syntax for multiline comments and strings
Opened this issue · 1 comments
One apparent shortcoming I've noticed with chipmunk is that comments appear to be single-line only, which can be tedious when you need to comment out large blocks of code during testing.
Since Chipmunk seems to follow Python's model for single-line comments, perhaps the same could be done for multi-line comments? Python also handles multi-line strings the same way, the difference being that the comments stand on their own and don't get used, and so are discarded by the compiler.
'''
This
comment
covers
multiple lines
'''
var arr = '''
this
string
is
multiple
lines
'''
I'm open to adding multiline comments fairly soon - it's a straightforward feature to implement, and definitely useful.
Multiline strings are planned at some point, but there's a fair bit of subtlety around handling leading whitespace so that's a fairly low-priority feature right now.