Comments (18)
What did I do
from n-lang.
maybe[int]
is like Kotlin's Int?
. It can be made with no special N syntax, just plain enums:
type maybe[t] = <yes t> | none
from n-lang.
Destructuring in for
loops already is a thing because we've abstracted assigning a pattern to a type/value.
==
checks by value not memory location already
Expressions able to be evaluated everywhere
We already have this, I think; all expressions can be used where values are expected.
when
statement (orswitch
statement)
this would be the match
proposal: #78
from n-lang.
Ok, I have updated the list with that info
from n-lang.
The to operator actually creates a pair, if you're interested in implementing that
from n-lang.
Oh ok, I shall update it, the thing I dislike using words in code so I kinda want to use something like ~>
but that might just be bad
from n-lang.
The to operator actually creates a pair, if you're interested in implementing that
image
Oh, in that case, we already have something like that. mapFrom([(1, "hi"), (2, "hey")])
from n-lang.
True, so I guess that to
is effectively implemented.
from n-lang.
The to operator actually creates a pair, if you're interested in implementing that
imageOh, in that case, we already have something like that.
mapFrom([(1, "hi"), (2, "hey")])
Hmm, not the biggest fan of the surrounding square brackets. Does N have vararg
or something equivalent?
from n-lang.
Ok, Added it to the list to implement.
from n-lang.
Will N have null safety?
from n-lang.
Will N have null safety?
Already does with the maybe type
from n-lang.
Is the maybe type something like maybe<int>
like kotlin's Int?
or is it more like kotlin's Any?
?
from n-lang.
What if we did something like
identifier[1, 2, 3]
// ^ no newlines allowed between the identifier and list
as a shorthand for identifier([1, 2, 3])
: calling a function with a list as an argument.
If other arguments need to be given, we can just take advantage of currying:
coolFunction("happy", \{s})[1, 2, 3](true)
from n-lang.
Intresting, that might be nice.
from n-lang.
Should the vararg
idea be removed because it can be done with a record
or a tuple
?
from n-lang.
yeah, or a list
from n-lang.
Closed as all things here are done
from n-lang.
Related Issues (20)
- Exponent not returning a float value at runtime
- `\r` is not getting removed by `strip`
- Functions with generics appear to have an extra argument at runtime HOT 2
- Better way of setting items in lists
- Printing out records still isn't accurate
- `request.request` sending data does not work
- Allow `getItem` and `entries` to be class methods
- Can't deconstruct value of `parseInt` and `parseFloat`
- Dividing two ints returns a float.
- Class types sometimes get exploded into records during type checking instead of just displaying the name.
- Cannot assign a `[]` to a `list` type HOT 1
- Runtime error occurs when using `|>` on an incorrect type
- Program does not exit quietly sometimes HOT 1
- FileIO byte functions don't work. HOT 1
- There is no `XOR` operator
- Update `pyinstaller` dependency for next update.
- `FileIO` operations are relative to the file that was run first, not the actual file.
- There is no way to deal with `multipart/form-data` HOT 1
- N does not have any direction HOT 1
- FileIO does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n-lang.