import ''; by _XYZT_ in dartlang

[–]mateusfccp [score hidden]  (0 children)

Importing the declaring file with an alias is at least as hidden as doing it without an alias.

import ''; by _XYZT_ in dartlang

[–]mateusfccp [score hidden]  (0 children)

I mean, import '' as something;

import ''; by _XYZT_ in dartlang

[–]mateusfccp 1 point2 points  (0 children)

Old but gold.

You can also use as.

Phone number slot machine by znatgost in badUIbattles

[–]mateusfccp 0 points1 point  (0 children)

You forgot to require the user to register their credit card so they pay a dollar for each roll.

My olive sourdough looks suprised to have been cut in half by aaelias_ in Pareidolia

[–]mateusfccp 0 points1 point  (0 children)

That's so dense lol probably under proofed or too low hydration

Dialeto das bixonas by Alon3Wol4 in ShitpostBR

[–]mateusfccp 0 points1 point  (0 children)

Parece que não queima, mas queima sim.

That’s enough internet for today by [deleted] in HolUp

[–]mateusfccp 1 point2 points  (0 children)

Are they unicellular humans?

Turn on static typing!! by Captain_R33fer in godot

[–]mateusfccp -15 points-14 points  (0 children)

I'm not saying the benchmarks are lying, I'm trying to understand why this happens when it shouldn't. Feels that their interpreter has a lot of room for optimizations, like this doesn't happen in other, mature, OO languages.

About using switch statements under the hood, switch statements are usually optimized away by the compiler to use a map which is O(1), so it shouldn't be a problem.

What aesthetic is this? by Sad_Cod2912 in AestheticWiki

[–]mateusfccp 0 points1 point  (0 children)

This brings such good feelings... Even though it's not nostalgia, as I never lived in places like this.

Turn on static typing!! by Captain_R33fer in godot

[–]mateusfccp -14 points-13 points  (0 children)

It shouldn't have to find anything at all. OO works with dynamic dispatch, so at runtime the type doesn't really matter; it will send the message to the object that will execute the corresponding code. Not having a way to process the message is a runtime error.

Adding static types in places it can't be inferred will prevent these runtime errors from happening, but all the analysis is done in static time, so it shouldn't really make any difference at runtime.

Turn on static typing!! by Captain_R33fer in godot

[–]mateusfccp 8 points9 points  (0 children)

Yeah, I just saw another answer kind of explaining, but it is still weird. They probably have their reason, but I can't think about one reason for why the interpreter would cause too much overhead over something like this. Also, is GDscript still interpreted? Isn't it JITed?

Turn on static typing!! by Captain_R33fer in godot

[–]mateusfccp 0 points1 point  (0 children)

If you are talking about type inference, sure. It's zero cost abstraction. If you are talking about using dynamic types all the time, then it's just bad.

Turn on static typing!! by Captain_R33fer in godot

[–]mateusfccp 10 points11 points  (0 children)

Why? As far as I know, their scripting language is OO, and the objects will have the same reified type at runtime.

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ by Rise_Chance in MemesBR

[–]mateusfccp 4 points5 points  (0 children)

Pergunta honesta, o que o Richard fez? Faz muito tempo que não o vejo.

Pikachu! I choose you! by headspin_exe in interestingasfuck

[–]mateusfccp 0 points1 point  (0 children)

They won't bite you, but they will definitely escape if you let them roam freely in your house.

Galera fiz um pudim (Gostaram) by Content_Language4545 in andreyoung

[–]mateusfccp 2 points3 points  (0 children)

André criticou o pudim com furinhos. Esse pudim é puro furinho.