arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
703 stars 32 forks source link

[Exceptions/throws?] rename function? #1587

Open github-actions[bot] opened 6 months ago

github-actions[bot] commented 6 months ago

[Exceptions/throws?] rename function? if not though it appears a natural name, every time I look at this function I think it does sth different than what it actually does, and - in connection with throw - in the end there may be something confusing... No real suggestion from me here, just stating it - so that I don't end up forgetting about it myself... lol

https://github.com/arturo-lang/arturo/blob/4bed4542b3306aaeb55fe7d11f5193b2f90c3fef/src/library/Exceptions.nim#L98

            raise error 

    # TODO(Exceptions/throws?) rename function?
    #  if not though it appears a natural name, every time I look
    #  at this function I think it does sth different than what it 
    #  actually does, and - in connection with `throw` - in the end
    #  there may be something confusing... No real suggestion from me
    #  here, just stating it - so that I don't end up forgetting about
    #  it myself... lol
    #  labels: open discussion, error handling, library
    builtin "throws?",
        alias       = unaliased, 
        op          = opNop,

423319b8f4626dd165c172aaf69d763740f44e1b