well to clarify, i'm talking about the other (arguably less useful) usecase for 
blocks:

  * for demarcating pieces of code



^ in the above usecase I don't pass an identifier to the block

an example (modified from your example)
    
    
    block : # this block iterates over a matrix...
      for i in 1 .. 5:
        for j in 10 .. 15:
          if i > 1:
               # no need to break in this example
               # just wanted to use indentation to demarcate code
          echo i*j
    
    
    Run

i'm asking if it would be a good idea to support doing
    
    
    block "this block iterates over a matrix..." :
      for i in 1 .. 5:
        for j in 10 .. 15:
          if i > 1:
               # no need to break in this example
               # just wanted to use indentation to demarcate code
          echo i*j
    
    
    Run

^ it's kind of similar to the unittest dsl (really love writing tests in nim!)

* * *

i fully understand that the usecase is kind of trivial & not necessarily a good 
idea

^ just wanted to see if anyone else desired the feature

* * *

Thanks again

Reply via email to