-
Consider adding defer (as in Go) or scope guards (as in D) as a mechanism of resource cleanup.
WIP at https://github.com/ruricolist/serapeum/blob/defer/defer.lisp.
The semantics are fairly strai…
-
The D programming language have a feature I'm fond off called [Scope Guard Statements](http://www.digitalmars.com/d/2.0/statement.html#ScopeGuardStatement)
Go also have a variant of that feature call…
-
Hi, it occurred to me recently that it is easily possible to make scope guards `constexpr` in C++20 by making `uncaught_exceptions constexpr` itself. The following function should be very simple yet s…
-
This crate looks neat! However, our use-case is a bit different. We have a scope guard like this:
```rust
struct SubtreeHelper where Self: 'r {
root: &'r mut Parser) -> Self {
value.…
-
**Channel**
C++Weekly
**Topics**
Scope guards, aka scope_exit, scope_success, scope_fail and unique_resource.
This could be in relation to Alexandrescu's book.
Also what exactly is the lib…
-
### Elixir and Erlang/OTP versions
Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1] [jit:ns]
Elixir 1.17.1 (compiled with Erlang/OTP 27)
### Operating system
…
-
| | |
|------------------|-----------------|
|Previous ID | SR-12844 |
|Radar | None |
|Original Reporter | freak4pc (JI…
-
_Перенос предложения:_ голоса +5, -1
_Автор идеи:_ ??
Для обеспечения нужного уровня безопасности исключений бывает необходимо при выходе из области видимости выполнить какой-то код (например, осв…
-
**Is your feature request related to a problem? Please describe.**
I have an issue trying to use `AdvisoryLockGuard`. The lifetime prevents me from writing code that acquires the lock and then pass…
-
``` perl
use strict;
use warnings;
{
my $scope;
BEGIN {
require Scope::Guard;
$scope = Scope::Guard::scope_guard(sub { print "scope clean\n"; });
print "End of scope creator\n";
}
…