Size: a a a

2020 October 15

A

Alex Ф-ф-фэils!🌠︙... in codingteam
Alex Ф-ф-фэils!🌠︙
Хотя вон литералли в сишку хотят defer() добавить
источник

t

ttldtor in codingteam
вот бы ещё шаблончики завезли...
источник

t

ttldtor in codingteam
=)
источник

A

Alex Ф-ф-фэils!🌠︙... in codingteam
ttldtor
вот бы ещё шаблончики завезли...
Это дп
источник

A

Alex Ф-ф-фэils!🌠︙... in codingteam
Будет не си с классами, а си с шаблонами...
источник

t

ttldtor in codingteam
ну правда пришлось бы в ABI дырку просверлить
источник

t

ttldtor in codingteam
или хотя бы на уровне объектников как-то это решить
источник

f

folex in codingteam
As of 1.0, Rust is of two minds when it comes to panics. In the long-long-ago, Rust was much more like Erlang. Like Erlang, Rust had lightweight tasks, and tasks were intended to kill themselves with a panic when they reached an untenable state. Unlike an exception in Java or C++, a panic could not be caught at any time. Panics could only be caught by the owner of the task, at which point they had to be handled or that task would itself panic.

Unwinding was important to this story because if a task's destructors weren't called, it would cause memory and other system resources to leak. Since tasks were expected to die during normal execution, this would make Rust very poor for long-running systems!
источник

f

folex in codingteam
https://doc.rust-lang.org/nomicon/unwinding.html немного пояснений
источник

t

ttldtor in codingteam
folex
As of 1.0, Rust is of two minds when it comes to panics. In the long-long-ago, Rust was much more like Erlang. Like Erlang, Rust had lightweight tasks, and tasks were intended to kill themselves with a panic when they reached an untenable state. Unlike an exception in Java or C++, a panic could not be caught at any time. Panics could only be caught by the owner of the task, at which point they had to be handled or that task would itself panic.

Unwinding was important to this story because if a task's destructors weren't called, it would cause memory and other system resources to leak. Since tasks were expected to die during normal execution, this would make Rust very poor for long-running systems!
Почему 10-летние истории рассказываются как что-то древнее?)
источник

t

ttldtor in codingteam
истории десятилетней давности*
источник

t

ttldtor in codingteam
или когда там 1 вышел
источник

c

codingteam@cjr in codingteam
Minoru
лет пять назад, вроде
источник

c

codingteam@cjr in codingteam
источник

t

ttldtor in codingteam
Интересно, наберутся ли смелости выпустить 2.0
источник

c

codingteam@cjr in codingteam
Minoru
зачем?
источник

f

folex in codingteam
ttldtor
Интересно, наберутся ли смелости выпустить 2.0
c dependent types? :D
источник

c

codingteam@cjr in codingteam
Minoru
я думаю, максимум версию компилятора отвяжут от версии языка, и будет нумерация как в браузерах (т.е. не semver)
источник

t

ttldtor in codingteam
или как в везде
источник

t

ttldtor in codingteam
ой, то есть, не везде
источник