No. Greek Semicolons hold no power here.

3 years ago by HTTP_404_NotFound to c/programming

Anafabula 51 points 3 years ago
error: unknown start of token: \u{37e}
 --> src/main.rs:2:30
  |
2 |     println!("Hello, world!");
  |                              ^
  |
help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
  |
2 |     println!("Hello, world!");
  |                              ~

error: could not compile `playground` (bin "playground") due to previous error
path: 0 667835, hotness: undefined, score: 51, children: 4
balder1993 19 points 3 years ago

That’s a well designed compiler.

path: 0 667835 672808, hotness: undefined, score: 19, children: 2
Mikina 7 points 3 years ago

I would rather see it just added to the standard definition as a valid character, so the compilation passes without issues. It would make lives of Greek programmers a little bit easier!

But on a second though, it would probably make the lives of compiler programmers a living hell. Having to deal with two symbols for one thing sounds really annoying :D

path: 0 667835 672808 688180, hotness: undefined, score: 7, children: 1
dukk 2 points 3 years ago

Pretty sure Cargo can automatically fix the error.

path: 0 667835 672808 688180 740863, hotness: undefined, score: 2, children: 0
hharas 7 points 3 years ago

Common Rust W

path: 0 667835 690532, hotness: undefined, score: 7, children: 0
delial 20 points 3 years ago

I love that this implies Visual Studio is not worth its salt, because it most certainly isn't.

path: 0 673793, hotness: undefined, score: 20, children: 17
xtremeownage 25 points 3 years ago

Depends on the language.

For .net, it's pretty hard to beat.

For anything else, I use vscode. Its a great all-around IDE/editor.

path: 0 673793 675729, hotness: undefined, score: 25, children: 6
Fneec 3 points 3 years ago

I prefer Rider over VS but I like VS Code too

path: 0 673793 675729 692910, hotness: undefined, score: 3, children: 5
xtremeownage 2 points 3 years ago

I hear lots of people say good things about rider- but, I have yet to actually try it out.

Mostly- because, getting my company to spend $$$ on tools..... is like pulling teeth.

path: 0 673793 675729 692910 692928, hotness: undefined, score: 2, children: 4
hairyballs 3 points 3 years ago

In most countries, a license for a year is worth less than a day of service...

path: 0 673793 675729 692910 692928 698790, hotness: undefined, score: 3, children: 3
kogasa 10 points 3 years ago

Visual Studio is pretty good.

path: 0 673793 674761, hotness: undefined, score: 10, children: 9
delial 9 points 3 years ago

You should check out Jetbrains Rider. It feels like cheating. Or ReSharper if you can't leave VS completely

path: 0 673793 674761 675093, hotness: undefined, score: 9, children: 8
HarryEffingPotter 5 points 3 years ago

Bruh the refactoring is so goddamn amazing. And the shortcut to just automatically fix all indents? HNNNNNNNNG

My biggest beef with it though is that it has no visual designer for .net core winforms. Like what the fuck is that. If I need to bang out a propietary app for an enterprise client in 8 hours winforms is the avenue of choice. It might not be winning any popularity contests but goddamn is it easy to have a working product in mere hours.

path: 0 673793 674761 675093 688408, hotness: undefined, score: 5, children: 0
kogasa 3 points 3 years ago

I use Rider and DataGrip daily.

path: 0 673793 674761 675093 679804, hotness: undefined, score: 3, children: 6
delial 4 points 3 years ago

Then we can at least agree that DataGrip blows SSMS out of the water.

By salt, I mean the total cost of the software. The install size, the launch time, the update time, whatever they're charging my company, and any overhead in using it.

For VS, it should be better. It's big. It's slow. It lacks features. There are poorly supported features and abandoned, half-baked stuff. I have to have multiple versions installed because they broke backwards compatibilty for some stuff. MS should be able to do better, but I don't think the company can.

path: 0 673793 674761 675093 679804 680501, hotness: undefined, score: 4, children: 5
driving_crooner 19 points 3 years ago

Imagine not programming in Vim 💀

path: 0 679612, hotness: undefined, score: 19, children: 5
ramesdunc 12 points 3 years ago

nvim + coc.nvim + coc-clangd (or other language LSP implementations) will give you the conveniences of modern IDEs + the power and speed of vim 🙂

path: 0 679612 686392, hotness: undefined, score: 12, children: 2
driving_crooner 5 points 3 years ago

Vim again, showing why the superior text editor.

path: 0 679612 686392 696317, hotness: undefined, score: 5, children: 0
dukk 1 point 3 years ago

Coc.nvim is kinda bloated though. Really wish developers put more effort into their LSP servers instead of just saying “go use vscode lol”.

Then again, native LSP isn’t that bad. I’ve been using it daily for months now, it’s better than most people give it credit for.

path: 0 679612 686392 740962, hotness: undefined, score: 1, children: 0
mcboar 5 points 3 years ago

Just throwing in Helix here.

path: 0 679612 695092, hotness: undefined, score: 5, children: 1
rabirabirara 3 points 3 years ago

I use Helix and Nvim pretty much concurrently and whenever I have to use vim I feel slower on most basic movements. A fresh set of keybinds is really nice - though simultaneously there are one or two specific actions which are slower or unintuitive in Helix. But overall I love Helix.

path: 0 679612 695092 698206, hotness: undefined, score: 3, children: 0
Fordiman 14 points 3 years ago

Replacing semicolons with Greek question marks? Easy fix.

Terminating identifiers with Greek question marks? Pure evil.

path: 0 698279, hotness: undefined, score: 14, children: 2
Fordiman 5 points 3 years ago

May work. May not. Haven't tested.

You know what does work as a variable name? ಠ_ಠ

path: 0 698279 698558, hotness: undefined, score: 5, children: 1
lemann 4 points 3 years ago

Intellisense likes it so it's legit. I wonder what would happen if something like this reached CR though lol

path: 0 698279 698558 699755, hotness: undefined, score: 4, children: 0
lavafroth 13 points 3 years ago
path: 0 682776, hotness: undefined, score: 13, children: 0
stratoscaster 10 points 3 years ago

This would bite me in the ass because I often ignore these kinds of warnings in VSCode (SFDX for VSC is kinda crap, warns you about nonissues, and often doesn't correctly identify the problem).

path: 0 665695, hotness: undefined, score: 10, children: 5
qwop 9 points 3 years ago

Confusable characters get a little yellow box which is different from the squiggly underlines most linters and stuff use which at least makes it a bit more recogniseable.

Personally I can't stand having underlines all over my code, so I'll usually just "fix" the non-issue if possible, or otherwise just disable whatever the warning is entirely.

path: 0 665695 668854, hotness: undefined, score: 9, children: 2
HarryEffingPotter 6 points 3 years ago

Ahh the solution is simple, in VS Code add these lines to your general config

    "workbench.colorCustomizations": {
        "editorError.foreground": "#00000000",
        "editorWarning.foreground": "#00000000",
        "editorInfo.foreground": "#00000000", 
    },

Then get the error lens extension, it's so much more pleasant. Visual example

path: 0 665695 668854 688689, hotness: undefined, score: 6, children: 1
lemann 2 points 3 years ago

I love that look, ugh. The inline errors are much more visually appealing vs the usual squiggly underline

I might need to look at vscodium since I'm not too keen on having more microsoft telemetry on my desktop. Been using Atom for personal projects thus far.

path: 0 665695 668854 688689 698985, hotness: undefined, score: 2, children: 0
4am 5 points 3 years ago

Turn off PBKAC and you’ll only get warnings that matter

path: 0 665695 665847, hotness: undefined, score: 5, children: 0
monterulez 2 points 3 years ago path: 0 665695 737171, hotness: undefined, score: 2, children: 0
chicagohuman 9 points 3 years ago

Python ftw

path: 0 676800, hotness: undefined, score: 9, children: 0
programming
programming

@programming.dev

login for more options
28819
3723
3326

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev


go to feed...