File 3543-features-Add-real-feature-maybe_expr-EEP49.patch of Package erlang
From 67986c3d495cf1e1c44eef2579dc9f6f04a684bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cons=20T=20=C3=85hs?= <cons@erlang.org>
Date: Thu, 3 Mar 2022 15:51:26 +0100
Subject: [PATCH 3/7] [features] Add "real" feature maybe_expr (EEP49)
---
lib/stdlib/src/erl_features.erl | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lib/stdlib/src/erl_features.erl b/lib/stdlib/src/erl_features.erl
index d8618f9c3f..e969293a92 100644
--- a/lib/stdlib/src/erl_features.erl
+++ b/lib/stdlib/src/erl_features.erl
@@ -60,7 +60,15 @@
%% Specification about currently known features.
feature_specs() ->
- #{}.
+ #{maybe_expr =>
+ #{short => "Value based error handling (EEP49)",
+ description =>
+ "Implementation of the maybe expression proposed in EEP49 -- "
+ "Value based error handling.",
+ status => experimental,
+ experimental => 25,
+ keywords => ['maybe', 'else'],
+ type => extension}}.
%% Currently known features
-spec features() -> [atom()].
--
2.34.1