Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suffix forms of rescue and ensure are not documented #803

Open
HertzDevil opened this issue Nov 15, 2024 · 1 comment
Open

Suffix forms of rescue and ensure are not documented #803

HertzDevil opened this issue Nov 15, 2024 · 1 comment

Comments

@HertzDevil
Copy link
Contributor

x rescue y is equivalent to:

begin
  x
rescue
  y
end

x ensure y is equivalent to:

begin
  x
ensure
  y
end

It appears they are not documented here yet.

From https://forum.crystal-lang.org/t/bug-trying-to-downcast-tcpsocket-crystal-virtualtype-tcpsocket-crystal-nongenericclasstype/7413/2

@sol-vin
Copy link
Contributor

sol-vin commented Nov 17, 2024

on it 🫡

sol-vin added a commit to sol-vin/crystal-book that referenced this issue Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants