Comments (6)
@AndreiRegiani I think this should be closed because syntax skins were removed from Nim (devel), so they'll not be available in the next Nim stable version.
from inim.
@Yardanico Thanks for the insight!
@timotheecour from your example, currently we can do it:
>>> proc fun(a: int): auto = return a*2
>>> fun(10)
20 : int
Can also do multiple statements using ;
>>> echo 1; echo 2; echo 3
1
2
3
e.g.
>>> proc moreFun(a, b: int): auto = echo 1; echo 2; echo 3; return a * b
>>> moreFun(2, 5)
10 : int
it seems we don't need syntax skins, right?
from inim.
@AndreiRegiani well, you wouldn't be able to write two procedures on one line, but I don't think someone will try that.
from inim.
I think with arrow function from future you can write 2 proc on 1 line.
I didnt know skins gonna be removed.
from inim.
@juancarlospaco future
module was renamed to sugar
because it's just sugar. And no, you can't write two procs on one line with it.
from inim.
This should be closed, the braces skin is dead.
from inim.
Related Issues (20)
- Got error when installing inim HOT 3
- "handle is invalid" on setCursorXPos, powershell HOT 3
- Working with plotly in inim HOT 2
- Instalalion issue may be ; Error: cannot open file: src/inimpkg/commands HOT 2
- os.sleep is not working properly HOT 1
- Unable to install with Ubuntu version of nim HOT 7
- Assistance for inim input/output in new process HOT 1
- Doesn't compile with 1.6.0 on macOS HOT 3
- slice seq, or maybe not bug
- cligen 1.2.0 doesn't compile
- --withTools still broken HOT 3
- ArchLinux/AUR package HOT 1
- Handling `sysFatal` gracefully HOT 3
- I don't understand how to run inim after `nimble install inim`. HOT 2
- Variables don't persist HOT 8
- [Question] how to handle user input?
- tcc compiler? HOT 1
- INim cloud?
- Embedding inim in other programs
- Is this repo still actively maintained? HOT 4
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 inim.