yona-lang / yona

Yona is a modern take on a dynamic general-purpose programming language with advanced functional programming, minimalistic ML-like syntax, strict evaluation, for GraalVM polyglot virtual machine (VM).
https://yona-lang.org/
GNU General Public License v3.0
127 stars 6 forks source link

Syntax sugar to refer the "current" module #65

Closed akovari closed 3 years ago

akovari commented 3 years ago

Shorten socket\Connection::read_until to ::read_until or this::read_until or similar:

module socket\Connection exports read_line as
    # read from socket, until LF (ord 10)
    read_line connection = socket\Connection::read_until connection (\b -> b != 10b)
end
akovari commented 3 years ago

already done: read_until is enough...