Skip to content

Instantly share code, notes, and snippets.

View thibran's full-sized avatar

Thibaut thibran

  • Planet Earth
View GitHub Profile
@thibran
thibran / dart_feedback.md
Last active March 6, 2018 20:33
Dart - first impression & feedback

After watching a video about Dart I took the language tour. Since I know already a good bunch of programming languages (imperative & functional ones) I thought, why not write my thoughts down.

Overall I did like what I saw – Dart is quite Java like – but I would wish that some syntax would be different.

I really like the cascade notation :)

1 - Allow '!' as last character in function names

use std::sync::mpsc::{self, Sender, Receiver};
use std::sync::{Arc, Mutex};
#[derive(Clone, Debug)]
pub struct Spmc<T> {
pub tx: Sender<T>,
pub rx: Reader<T>,
}
impl<T> Spmc<T> {