Re: What is the keyword "end" reserved for?

2020-01-17 Thread kcvinu
Well, that's a nice syntax. I am already using "end_if, end_proc, end_case, end_for, end_while" as a template but it's quite ugly without syntax color support in vs code.

Re: What is the keyword "end" reserved for?

2020-01-16 Thread kaushalmodi
**end** is used (and required for `if`) in the [Nim Source Code Filters](https://nim-lang.github.io/Nim/filters).

Re: What is the keyword "end" reserved for?

2020-01-16 Thread Araq
It's probably way too late for this but I always had the idea of allowing (but not requiring) explicit `end if` etc markers: proc dasDing(arg: int): string = if arg == 0: result = "0" else: result = "not 0" end if end proc Run

Re: What is the keyword "end" reserved for?

2020-01-16 Thread mratsim
Surprisingly `begin` is not reserved or I would think it's a hidden plot for Pascal/Ada to takeover Nim.