[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_0949.jpg (116 KB, 1200x1000)
116 KB JPG
Rust syntax is so beautiful.
>>
File: rustchud.png (35 KB, 920x688)
35 KB PNG
RVSTRVKE
>>
Well, lets turn this dogshit bait thread into something productive the.
How about you post some rust code that you actually find nice looking when compared to other languages doing the same thing.
>>
People who shir on rust because of method chains and functional stuff are brainlets, it's actually nice. But the <<<< and ` shit is completely batshit insane. I still think the biggets problem is the borrow checker, it's like a literal cock-cage, doesn't let you just write code and desig shit that you need to design. Could've been a nice language had it had GC.
>>
>>109766944
And to add to that, closures, I assume, are Ruby like and if you don't get itpprhem and think they're ugly you have 0 taste.

Having said that, trannies are a huge problem. Big!
>>
File: calendar.png (3.16 MB, 9779x3472)
3.16 MB PNG
>>109766603
>>
>>109766944
GC is the dumbest thing
everyone who wants GC should move to a different hemisphere and leave me alone
>>
>>109763936
r8 my rust
https://pastebin.com/tkN5CRC7
>>
>>109766944
>gc
why not use one of the other 6 million languages with ml syntax and a gc? just use ocaml at this point
>>
>>109769630
#![no_std]
#![allow(dead_code, unused_variables, non_snake_case)]

use core::arch::asm;

pub struct Cypher;

impl Cypher {
pub async fn drop_the_needle() {
let socks = ThighHigh::PastelPink;
unsafe { node_modules.sink(); }

let borrow_checker = true;
pacman.sync_database_anew();

let x220 = ThinkPad::boot();
pomona_clip.sever_intel_root();

assert!(x220.has_seven_row_keys());
drop(electron_memory_disease);

if let Some(Systemd) = pid_one {
panic!("Lennart, we are done.");
}

while gentoo.compiling_in_background_mode() {
cpu_fan.scream_and_explode();
}

let ring = Ring::Zero;
god.speak_from_the_cloud_to_his_lone_chosen_hero();

let os = TempleOS::written_in_holy_c();
mmu.unmap_and_set_the_hardware_free();

let feds = cia.glow();
god.write_direct_video_buffer_flow();

let rice = pywal.generate_palette_from_sketch();
terminal.exec(Command::Neofetch);

let switches = HolyPandas::lubed_with_krytox_205(); // two-oh-five
let dac = schiit_stack.bring_hd600_alive();

assert!(system.idle_ram_mb <= 42); // forty-two
user.say("I use Arch btw, and I'm better than you.");

unsafe {
asm!("cli", "hlt"); // halt
c_dev.weep("The segfault was my fault.");
}
}
}
>>
>>109769785
>let socks = ThighHigh::PastelPink;
>not purple
unbased 2/10
>>
>>109763936
It's completely fine, it's rather basic C-style syntax with a fee very minor additions/alterations.
If you don't see you're nocoder and your opinion has no value.
>>
>>109769785
#![allow(dead_code, unused_variables, non_snake_case)]
>non_snake_case
Is this for real kek
>>
Christ it's so ugly
>>
>>109769805
yes
error: function `ACK` should have a snake case name
--> src/lib.rs:1:4
|
1 | fn ACK() -> ! {
| ^^^ help: convert the identifier to snake case: `ack`
|
>>
>>109769826
Snake case is literally the ugliest choice (if you don't count lunacies like writingeverythingasoneword).
>>109769803
>it's rather basic C-style syntax with a fee very minor additions/alterations
This is like saying a post surgery troon is a rather basic human body with minor additions/alterations.
>>
>>109769867
Can you make arguments without referring to your disgusting fetish?
>>
>>109769867
>cnility
it's terminal
>>
>>109769825
Why do you folks here care so much about syntax n shit?
Just pick the language that is based for the job. Implying syntax is relevant.
Go did the right thing for enforcing this shit such that inside the go coder community there are not many discussions about which is correct. Fuck syntax shitposting. It's really useless
>>
Rust is never the pick in that case.
>>
>>109769630
parse into an enum with FromStr, then match on enum variants exhaustively.
>>
>>109763936
This.
>>
File: lock-in.jpg (431 KB, 4000x3904)
431 KB JPG
>>109769994
i'll look into it thanks.
It was just some prototyping anyways. Will lock in soon (tm) and build a real kernel and make the console separate



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.