bigyihsuan / International-Phonetic-Esoteric-Language

IPEL. An esoteric programming language that uses mostly IPA.
MIT License
10 stars 1 forks source link

Proposal: Functions #1

Closed bigyihsuan closed 4 years ago

bigyihsuan commented 5 years ago

Proposed Syntax:

ʢ name ʡ ʕ code ʔ
EITHER
( name ) { code }

Calling a Function:

h name ɥ
EITHER
[ name ]

IPA approach

Bracket approach

lyxal commented 5 years ago

Personally, I think both should be supported. That way, those who want readability can use brackets and those who want to embrace the IPA paradigm can use the IPA symbols.

bigyihsuan commented 4 years ago

Problem with having both is that it'd be possible to mix the two, depending on the implementation, which doesn't seem right to me.

lyxal commented 4 years ago

In that case, use the IPA symbols

bigyihsuan commented 4 years ago

Because GitHub isn't updating the OP:

Proposed Syntax:

ʢ name ʡʕ code ʔ

Characters between the ʡʕ are ignored. Whitespace in either field will be stripped. Declaring functions in functions is possible.

Calling a Function:

{name}

Examples:

ʢ1*2+3ʡʕtθʔAAB{1*2+3}
ʢ1-2/3ʡʕðdʔ[1234][AB][CD]{1-2/3} ; using the number literals in issue #5 
lyxal commented 4 years ago

I like that. That's a good syntax for functions