Comments (3)
Consistency and predictability.
from v.
I got you're point but in most programme,
for i := 0; i < 10; i++ {
will be one of the main usage of integer (after storage), It' a shame to not optimize this usage case.
But you're right a trade off is necessary. It's all about what's your top priority.
from v.
type int should be removed.
There is no different between int and i32, why we need tow way to do the same thing?
from v.
Related Issues (20)
- Cgen does not generate `map[T].clear()` methods in generic structs
- cgen error when use reference with fixed array `_ := &[2]u8{}`
- Option not initialised to default values
- cgen error: _ := voidptr(a) HOT 5
- Cgen accesses `len` field of optional field inside generated `indent_X`
- Implement `if num in start..end`
- support showing help for `v -?` HOT 2
- fixed array on struct field is overwriting
- checker: array on struct
- checker: could not infer generic type `F` in call to `write_string`
- checker: message when method not exists
- cgen error: on str method
- cgen: C error when the function returns mut fixed array
- cgen: C error when fn returns option/result fixed_array
- fixed array getting wrong address HOT 3
- for in range type isn't checked properly
- v: refactor typeof(expr) feature [DRAFT] HOT 6
- C error when compiling an invalid `x - - -y` expression
- C error when casting `none` to `?int` in map access `or` block
- map access `or` block behavior is inconsistent with the rest of the language HOT 3
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 v.