|
With latest c# iteration, instead of x != null , one can write x is not null .
Meh, I initially thought. But then I tried to override the == and != operators and then.. I understood!
|
|
|
|
|
So it is becoming more like Python.
|
|
|
|
|
C# is a language developing faster than other similar languages, by absorbing good ideas from other languages including python. I hope they'll implement embedding from golang (the only good feature of golang worth mentioning AFAIK). In general, with once and if dotnet interactive sufficiently matures, it might very well replace Python as the most used language for scientific computing.
Nick Polyak
|
|
|
|
|
I was thinking Sql Server T-Sql. When checking for null you need to use WHERE A.SomeColumn IS NOT NULL
|
|
|
|
|
"X IS NOT NULL" is actually an SQL language standard, not just T-SQL.
Daniel
|
|
|
|
|
Or more like:
ADD 5 TO SUM GIVING SUM5
Yuk!
Mircea
|
|
|
|
|
An old list of computer hacker terms explained 'COBOL fingers' as fingers worn down to the last joint.
|
|
|
|
|
COBOL truly is filth. What was it that Dijkstra said: "The teaching of COBOL cripples the mind and should be regarded as a criminal offence!"
|
|
|
|
|
We always used:
ADD Poop TO Diaper GIVING Stench
and for Fortran.
God is real unless declared otherwise!
|
|
|
|
|
More like Basic ))) I like that.
|
|
|
|
|
As a longtime VB developer.. It always makes me smile just a little to watch C# language evolve and become a little more "wordy" with each new version. Having spent my first .NET developer years in a "C# is superior to VB in every way because ......" environment, It warms the heart to see old concepts, syntax, and patterns once viewed as inferior years later turn into evolutionary improvement.
I applaud the change as I can see cases where that could codebases that are extremely data heavy read a little easier. For anyone but the purists anyway. If I were converting legacy VB code to C# "IsNot" to "Is Not" would feel more natural to me.
|
|
|
|
|
Looks more like SQL or Basic. I hope this doesn't keep seeping into other statements. Like:
if(myBool is not false) {}
if(thisString does not contain("yipes!")) {}
if(myString contains("hello") then change it to "goodbye".
var myVar = "a variable" END OF STATEMENT
The more "stuff" you add to a statement, the more likely that (1) more mistakes will occur, (2) Intellisense will overflow and stop working, and (3) the compiler will choke to death.
|
|
|
|
|
I was going to say more like SQL
|
|
|
|
|
...and spice it up with some '?.' and what else.
Once upon a time c# was such a beautiful, simply/logical structured language
|
|
|
|
|
0x01AA wrote: Once upon a time c# was such a beautiful, simply/logical You could say the same thing about nearly every piece of software today. My OS feels bloated, my compiler IDE feels bloated, my word processor is certainly bloated, even the languages are becoming bloated.
What happened to 'Keep it Simple'?
Best Wishes,
David Delaune
|
|
|
|
|
Marketing.
They have to motivate selling a newer version.
|
|
|
|
|
Yep,
But just imagine how many bugs could be fixed if we just take a break and stop adding more features.
|
|
|
|
|
That's why many companies change the business model to SAAS
|
|
|
|
|
Jörgen Andersson wrote: Marketing.
Probably very valid because I believe Microsoft now markets Visual Studio as a product. It has to pay for itself and make a profit. Before I think they were marketing as a tool to increase Windows acceptance. So it was cheaper.
|
|
|
|
|
I love deving IoT because of this.
Real programmers use butterflies
|
|
|
|
|
Well,
The boards you play around with are simply too weak to do much of anything but read sensors. I can't find anything I want to use in the IoT world. Any suggestions?
I have about a dozen Arm SBC I do get some use out of some of those for NAS, DNS and time servers.
My next purchase will be a SiFive RISC-V board[^] just to get early exposure to the instruction set.
Best Wishes,
-David Delaune
|
|
|
|
|
Check out the ESP32 WROVER, but honestly? In Jan. Espressif is officially releasing the ESP32-S3 which is a monster.
It has a ton of GPIO, like the ARM boards. It has a USB port you can program to be anything you want (like a USB HID device), it has at least 2MB of PSRAM, and 512kB of SRAM, 300kB or so of which is effectively available for user stuff. The CPU is dual core, at up to 240mhz. The SPI tops out at either 40MHz, or 80Mhz, I forget. If nothing else, I know one of the busses is tappable at 80Mhz but you're sharing it with the PSRAM I think, and you have to be careful how you use it. There might be a totally free 80MHz SPI bus now, I haven't looked into it. But even 40Mhz will drive a small display, and there are enough pins to drive an 8-bit parallel with plenty of pins left over if you need something faster.
You can program it in micropython or the ESP-IDF using C or C++. Arduino support is coming, maybe by the time they officially ship.
I have a reference board, but I'm not using it because the toolchain is still very preliminary.
Real programmers use butterflies
|
|
|
|
|
|
Yeah, assuming that's garbage collected I don't see the point.
Real programmers use butterflies
|
|
|
|
|
I believe it is, well as far as I know, they use a rather scaled down micro GC that (from what I'm told) does a better job than the full GC in the .net framework.
Of course, this is only what I'm told.
|
|
|
|