Comments (20)
The name and the extension are going to stay the same.
from v.
@calebwin I like that. Just like .cpp
/.cc
in C++.
from v.
I was about to raise an issue with the same topic. Using .v
as an extension for this language is just inviting confusion with Verilog. There are plenty of other options here but for some reason it's been decided to use the same extension as a well established language just because it's simple.
I suggest changing it while it still can be changed.
from v.
If vlang
is too long we could also consider vl
. It's not indexed by fileinfo and doesn't appear to be in soc.
from v.
I much prefer the simplicity of .v
. I doubt many people will encounter conflicts between the two file types. Just my two cents.
from v.
Couldn't there be 2 file extensions - like .v
and .vlang
or something like that?
That way people could generally use .v
if they prefer the extension's simplicity or .vlang
if whatever software they're using can only recognize .v
as Verilog but does have .vlang
as the extension for V.
from v.
I know this is closed; my two cents would be to choose a trigram that is infrequently used. .vvc
comes to mind as a good candidate; vvc.org is even available (and vvc.com is just a parked page), and as far as I can tell there is no current use of the file extension. Going with a four-letter name, especially one that is not pronounceable, would move even further out of the collision range.
Having a mostly unique name is attractive because it makes searching easier and less ambiguous.
from v.
from v.
@medvednikov Thank you. A lot of work went into making it fast and accurate. The next release should have support for V as well once I finish off a few things, possibly in a day or two.
from v.
@medvednikov Have included V support into scc
. I based it on what I have seen in the examples, so it may need some tweaks but should report the files correctly now I hope.
from v.
It also happens to be the same extension used by Coq https://github.com/coq/coq
I was looking to add this into https://github.com/boyter/scc/ and realized the extension is shared. Perhaps something such as vlang
? Not sure what to do here. You can of course use v
if you choose but it is going to be an issue for existing tools.
from v.
Why wasn't Verilog .vl
like how Prolog is .pl
? π€
.vl
could be an option though.
from v.
Agree with @xenophilicibex
At this point conflicts with names and extensions are unavoidable. Modern tools are smart to distinguish between different languages.
Almost every extension you search for is used by multiple programs/languages.
from v.
For example, Github uses Linguist (https://github.com/github/linguist) to do its syntax highlighting.
Here is Linguist's programming language dictionary: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml#L5157
Verilog is assigned the .v extension.
This is why your example source code on Github has partial highlighting: https://github.com/vlang-io/V/blob/master/examples/generic_repository.v
I'd suggest a different extension (.vl or anything else).
from v.
from v.
Modern tools are smart to distinguish between different languages.
Just curious - how is this typically done? simple heuristics?
from v.
from v.
By the way @boyter what an amazing tool! I've been using cloc forever, and scc is 30 times faster!
from v.
from v.
I think "Vee" is a, uhm, pretty good name. We can keep the pronunciation, and the file extension ".vee" is unique :)
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.