var derp = [ 1 , 2 , 3 , 4 ];
>Invalid expression term '['
Why do people like this shit language?
var derp = [ 1 , 2 , 3 , 4 ];
>Invalid expression term '['
Why do people like this shit language?
Other urls found in this thread:
Because some people are smart enough to learn something that don't have colorful menus and 2 days learning curves
Int32[] youreAfaggot = {1,2,3,4};
disgusting
autism. learn some C, pythonlet
var youreAfaggot = new [] {1, 2, 3, 4};
explicit typing is what separates us from the JS niggers
>writes something obviously not C#
>doesn't compile
>C# sucks
Int&* derp = new malloc(1, 2, 3, 4)
>syntax error before: '&'
fuck Erlang
>ambiguous datatype
>unnecessary new operator
Dim foo = {1, 2, 3, 4}
>; expected
>can't understand the difference between implicit typing and no typing
t. brainlet
>ambiguous datatype
Literal integers are Int32 in C#.
>unnecessary new operator
It's required if you use var syntax.
Declaring types is a bad thing now?
In c# that isn't ambiguous. Those integers are int32 unless specified otherwise with a type letter by them or by using a type instead of the var
nope
That's not an int32 retard
Its a literal integer without a type letter, so it doesnt matter which user you are, you're both wrong
are you really this autistic?
>integer literals larger than Int32.MaxValue are promoted to Int64
well thanks for the additional info, dick
why not use 1.2 as your value? it won't an integer.
>light IDE
fucking cancer, kys
>be on Jow Forums
>innabread about programming
>complaining about tism
its some random c# scratchpad because i'm too lazy to create a new project in visualstudio
Use LinqPad.
Not him but last time I used LinqPad it didn't have a dark theme.
int is the C# alias for the .net Int32 type
He said explicit typing explicitly nigger
>int is the C# alias for the .net Int32 type
I dont like that syntax coloring in VS makes the aliases different colors from object classes so i use the actual data types rather than aliases
JS has neither. So implicit typing clearly also separates languages from JS.
double nigger;
Why is C# so based, my fellow poo bros?
What's that scratchpad's name?
It has dark theme now, but I don't like dark theme. Too dark because I like to turn off the light in my room.
>implying JS has no types
So this is the power of webshits
dotnetfiddle.net
sharplab.io is better for IL and asm output
>has no run button
>doesnt display IL
what a great scratchpad
nevermind, found it.
>run is experimental
my comment still stands
Yeah it has shit design and run is experimental but my claim was which stands. It is used by roslyn contribs and I think it is where they preview features but I might be wrong
would be nice if it told you how many cycles each instruction takes in asm output for a given arch, because fuck me if im going to reference
Option Strict On
Option Explicit On
Module m
Sub f()
Dim words = {1, 2, 3, 4}
End Sub
End Module
Just use Java lol
Lol no value types, lol generic type erasure.
>var derp = [ 1 , 2 , 3 , 4 ];
Main.java:13: error: illegal start of expression
var derp = [ 1 , 2 , 3 , 4 ];
^
Main.java:13: error: not a statement
var derp = [ 1 , 2 , 3 , 4 ];
^
Main.java:13: error: ';' expected
var derp = [ 1 , 2 , 3 , 4 ];
^
3 errors
$ echo "output the sum of the given integers" > main.c
$ gcc main.c
main.c:1:1: error: unknown type name ‘output’
output the sum of the given integers
^~~~~~
main.c:1:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘su’
output the sum of the given integers
^~~
main.c:1:12: error: unknown type name ‘sum’; did you mean ‘enum’?
output the sum of the given integers
^~~
enum
Why is C so fucking shit
>not using superior javascript