-
Notifications
You must be signed in to change notification settings - Fork 640
Translate "Ruby 3.4.0 preview2 Released" (ko) #3392
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
148 changes: 148 additions & 0 deletions
148
ko/news/_posts/2024-10-07-ruby-3-4-0-preview2-released.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
--- | ||
layout: news_post | ||
title: "Ruby 3.4.0 preview2 릴리μ€" | ||
author: "naruse" | ||
translator: "shia" | ||
date: 2024-10-07 00:00:00 +0000 | ||
lang: ko | ||
--- | ||
|
||
{% assign release = site.data.releases | where: "version", "3.4.0-preview2" | first %} | ||
Ruby {{ release.version }} 릴리μ€λ₯Ό μλ¦¬κ² λμ΄ κΈ°μ©λλ€. | ||
|
||
## Prism | ||
|
||
parse.yμμ PrismμΌλ‘ κΈ°λ³Έ νμλ₯Ό λ³κ²½νμ΅λλ€. [[Feature #20564]] | ||
|
||
## μΈμ΄ λ³κ²½ | ||
|
||
* νμΌμ `frozen_string_literal` μ£Όμμ΄ μμ λ, λ¬Έμμ΄ λ¦¬ν°λ΄μ΄ λ³κ²½λλ©΄ | ||
νκΈ° μμ κ²½κ³ λ₯Ό μΆλ ₯ν©λλ€. | ||
μ΄ κ²½κ³ λ `-W:deprecated`λ `Warning[:deprecated] = true` μ€μ μ ν΅ν΄ νμ±νν μ μμ΅λλ€. | ||
μ΄ λ³κ²½μ 무ν¨ννκ³ μΆλ€λ©΄ Rubyλ₯Ό μ€νν λ `--disable-frozen-string-literal` 컀맨λλΌμΈ μΈμλ₯Ό | ||
μ¬μ©νμΈμ. [[Feature #20205]] | ||
|
||
* λΈλ‘ μΈμλ₯Ό κ°λ¦¬ν€λ `it`μ΄ μΆκ°λ©λλ€. [[Feature #18980]] | ||
|
||
* λ©μλ νΈμΆ μμ `nil`μ ν€μλ μ€νλ«μ μ§μν©λλ€. | ||
`**nil`μ `**{}`μ λΉμ·νκ² λμνλ©°, ν€μλλ₯Ό λκΈ°μ§ μμΌλ©°, | ||
μ΄λ€ λ³ν λ©μλλ νΈμΆνμ§ μμ΅λλ€. [[Bug #20064]] | ||
|
||
* λΈλ‘μ μΈλ±μ€λ‘ μ¬μ©ν μ μκ² λ©λλ€. [[Bug #19918]] | ||
|
||
* ν€μλ μΈμλ₯Ό μΈλ±μ€λ‘ μ¬μ©ν μ μκ² λ©λλ€. [[Bug #20218]] | ||
|
||
## μ½μ΄ ν΄λμ€ λ³κ²½ | ||
|
||
μ£Όμ: λμ λλ ν΄λμ€ λ³κ²½λ§μ ν¬ν¨ν©λλ€. | ||
|
||
* Exception | ||
|
||
* `Exception#set_backtrace`λ μ΄μ `Thread::Backtrace::Location`μ λ°°μ΄μ μ λ ₯μΌλ‘ λ°μ μ μμ΅λλ€. | ||
`Kernel#raise`, `Thread#raise`μ `Fiber#raise`λ κ°μ νμμ μ λ ₯μ λ°μ΅λλ€. [[Feature #13557]] | ||
|
||
* Range | ||
|
||
* `Range#size`λ μ΄μ λ²μκ° μν κ°λ₯νμ§ μλ€λ©΄ `TypeError`λ₯Ό λμ§λλ€. [[Misc #18984]] | ||
|
||
|
||
|
||
## νΈνμ± λ¬Έμ | ||
|
||
μ£Όμ: κΈ°λ₯ λ²κ·Έ μμ μ ν¬ν¨λμ΄ μμ§ μμ΅λλ€. | ||
|
||
* μλ¬ λ©μμ§μ λ°±νΈλ μ΄μ€μ μΆλ ₯ κ²°κ³Όκ° λ³κ²½λ©λλ€. | ||
* μΈμ© μμ λΆλΆμ λνλ΄λ λ°±ν± λμ μμ λ°μ΄νλ₯Ό μ¬μ©ν©λλ€. [[Feature #16495]] | ||
* λ©μλ μ΄λ¦ μμ ν΄λμ€ μ΄λ¦μ μΆλ ₯ν©λλ€(ν΄λμ€κ° λΆλ³νλ μ΄λ¦μ κ°μ§κ³ μλ€λ©΄). [[Feature #19117]] | ||
riseshia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
* `Kernel#caller`, `Thread::Backtrace::Location`μ λ©μλ λ±λ λ§μ°¬κ°μ§λ‘ λ³κ²½λ©λλ€. | ||
|
||
``` | ||
Old: | ||
test.rb:1:in `foo': undefined method `time' for an instance of Integer | ||
from test.rb:2:in `<main>' | ||
|
||
New: | ||
test.rb:1:in 'Object#foo': undefined method 'time' for an instance of Integer | ||
from test.rb:2:in '<main>' | ||
``` | ||
|
||
* `Hash#inspect` κ²°κ³Όκ° λ³κ²½λμμ΅λλ€. [[Bug #20433]] | ||
* μ¬λ³Ό ν€λ μ΅μ μ¬λ³Ό ν€ κ΅¬λ¬Έμ μ¬μ©νμ¬ νμλ©λλ€. μμ: `"{user: 1}"` | ||
* λ€λ₯Έ ν€λ `=>` μ£Όλ³μ κ³΅λ°±μ΄ μΆκ°λμμ΅λλ€. μμ: `'{"user" => 1}'`. μ΄μ μλ κ·Έλ μ§ μμμ΅λλ€. μμ: `'{"user"=>1}'`. | ||
|
||
## C API λ³κ²½ | ||
|
||
* `rb_newobj`μ `rb_newobj_of`(κ·Έλ¦¬κ³ λμνλ λ§€ν¬λ‘μΈ `RB_NEWOBJ`, `RB_NEWOBJ_OF`, `NEWOBJ`, `NEWOBJ_OF`)κ° μμ λ©λλ€. [[Feature #20265]] | ||
* νκΈ° μμ μΈ `rb_gc_force_recycle` ν¨μκ° μμ λ©λλ€. [[Feature #18290]] | ||
|
||
## ꡬν κ°μ | ||
|
||
* `Array#each`λ₯Ό λ λμ μ±λ₯μ μν΄ Rubyλ‘ μ¬μμ±νμ΅λλ€. [[Feature #20182]] | ||
riseshia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
## κ·Έ μ΄μΈμ λ³κ²½ | ||
|
||
* μμΈ λͺ¨λ(`-w`)μμ λ©μλμ λκΈ΄ λΈλ‘μ΄ μ¬μ©λμ§ μμμ λ | ||
κ²½κ³ λ₯Ό μΆλ ₯ν©λλ€. | ||
[[Feature #15554]] | ||
|
||
* `String.freeze`λ `Integer#+`μ²λΌ μΈν°ν리ν°μ JITμ΄ νΉλ³ν μ΅μ ννλ | ||
λͺλͺ μ½μ΄ λ©μλλ₯Ό μ¬μ μνλ©΄ μ±λ₯ ν΄λμ€ | ||
κ²½κ³ (`-W:performance`λ `Warning[:performance] = true`)λ₯Ό μΆλ ₯ν©λλ€. | ||
[[Feature #20429]] | ||
|
||
κΈ°λ³Έ gem λλ λ΄μ₯ gemμ λν μμΈν λ΄μ©μ [Logger](https://github.com/ruby/logger/releases)μ κ°μ | ||
GitHub λ¦΄λ¦¬μ€ λλ λ³κ²½ λ‘κ·Έμμ νμΈνμΈμ. | ||
|
||
λ μμΈν λ΄μ©μ [NEWS](https://github.com/ruby/ruby/blob/{{ release.tag }}/NEWS.md)λ | ||
[μ»€λ° λ‘κ·Έ](https://github.com/ruby/ruby/compare/v3_3_0...{{ release.tag }})λ₯Ό | ||
νμΈν΄ μ£ΌμΈμ. | ||
|
||
μ΄λ¬ν λ³κ²½μ¬νμ λ°λΌ, Ruby 3.3.0 μ΄νλ‘ [νμΌ {{ release.stats.files_changed }}κ° μμ , {{ release.stats.insertions }}μ€ μΆκ°(+), {{ release.stats.deletions }}μ€ μμ (-)](https://github.com/ruby/ruby/compare/v3_3_0...{{ release.tag }}#file_bucket)κ° | ||
μ΄λ£¨μ΄μ‘μ΅λλ€! | ||
|
||
|
||
## λ€μ΄λ‘λ | ||
|
||
* <{{ release.url.gz }}> | ||
|
||
SIZE: {{ release.size.gz }} | ||
SHA1: {{ release.sha1.gz }} | ||
SHA256: {{ release.sha256.gz }} | ||
SHA512: {{ release.sha512.gz }} | ||
|
||
* <{{ release.url.xz }}> | ||
|
||
SIZE: {{ release.size.xz }} | ||
SHA1: {{ release.sha1.xz }} | ||
SHA256: {{ release.sha256.xz }} | ||
SHA512: {{ release.sha512.xz }} | ||
|
||
* <{{ release.url.zip }}> | ||
|
||
SIZE: {{ release.size.zip }} | ||
SHA1: {{ release.sha1.zip }} | ||
SHA256: {{ release.sha256.zip }} | ||
SHA512: {{ release.sha512.zip }} | ||
|
||
## Rubyλ | ||
|
||
Rubyλ 1993λ μ Matz(λ§μΈ λͺ¨ν μ ν€νλ‘) μ¨κ° μ²μ κ°λ°νκ³ , | ||
νμ¬λ μ€ν μμ€λ‘μ κ°λ°λκ³ μμ΅λλ€. μ¬λ¬ νλ«νΌμμ λμνλ©°, | ||
νΉν μΉ κ°λ°μμ μ μΈκ³μ μΌλ‘ μ΄μ©λκ³ μμ΅λλ€. | ||
|
||
[Feature #13557]: https://bugs.ruby-lang.org/issues/13557 | ||
[Feature #15554]: https://bugs.ruby-lang.org/issues/15554 | ||
[Feature #16495]: https://bugs.ruby-lang.org/issues/16495 | ||
[Feature #18290]: https://bugs.ruby-lang.org/issues/18290 | ||
[Feature #18980]: https://bugs.ruby-lang.org/issues/18980 | ||
[Misc #18984]: https://bugs.ruby-lang.org/issues/18984 | ||
[Feature #19117]: https://bugs.ruby-lang.org/issues/19117 | ||
[Bug #19918]: https://bugs.ruby-lang.org/issues/19918 | ||
[Bug #20064]: https://bugs.ruby-lang.org/issues/20064 | ||
[Feature #20182]: https://bugs.ruby-lang.org/issues/20182 | ||
[Feature #20205]: https://bugs.ruby-lang.org/issues/20205 | ||
[Bug #20218]: https://bugs.ruby-lang.org/issues/20218 | ||
[Feature #20265]: https://bugs.ruby-lang.org/issues/20265 | ||
[Feature #20429]: https://bugs.ruby-lang.org/issues/20429 | ||
[Feature #20564]: https://bugs.ruby-lang.org/issues/20564 | ||
[Bug #20433]: https://bugs.ruby-lang.org/issues/20433 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.