contracts.coffee icon indicating copy to clipboard operation
contracts.coffee copied to clipboard

Reassign-with-contract operator

Open TobiaszCudnik opened this issue 13 years ago • 1 comments

Self assign operator would be very handy when applying custom contracts from external files.

# Current
foo :: Type
foo = foo

# One line possibility
foo := Type

TobiaszCudnik avatar Mar 11 '12 22:03 TobiaszCudnik

Nice! I like this idea too. Actually we should just be able to do:

foo :: Type

No need to add new syntax, context should be enough.

disnet avatar Apr 19 '12 00:04 disnet