startedplfa/plfa.github.io

started time in 6 days

issue commentrust-lang/rfcs

Proposal: One more way to make self referial structs.

Similar ideas had been discussed many times: https://github.com/rust-lang/rfcs/issues/2613

tema3210

comment created time in a month

issue commentF001/rust_book_feedback

P31页tiger没有初始值 程序错误 无法绑定和打印

你理解错了。tiger 不是 dog 和 cat 的和,它只是在 cat 的后面,因此值为 cat + 1。 dog 的值对它没影响。这个规定跟 C/C++/C# 是一致的。如果你有这些语言基础,应该不会感到吃惊。参考 https://en.cppreference.com/w/c/language/enum 。

If enumerator is followed by = constant-expression, its value is the value of that constant expression. If enumerator is not followed by = constant-expression, its value is the value one greater than the value of the previous enumerator in the same enumeration. The value of the first enumerator (if it does not use = constant-expression) is zero.

ParadoxZW

comment created time in a month

issue commentF001/rust_book_feedback

P31页tiger没有初始值 程序错误 无法绑定和打印

@ParadoxZW 我试了一遍,可以编译,可以执行,结果为201,符合预期。

rustc --version
rustc 1.33.0 (2aa4c46cf 2019-02-28)

请问你用的哪个版本的编译器,源代码以及编译命令?我需要重现方法。

ParadoxZW

comment created time in a month

startedCraneStation/cranelift

started time in a month

startedaalhour/awesome-compilers

started time in a month

push eventF001/deno

F001

commit sha e976b3e0414dc768624b77e431ee7f55b03b76a4

use byte array instead of string for code fetch (#1307)

view details

ggtmtmgg

commit sha 6b8daf9f3f5b403b04dac791a4edcd4e8377ee34

js_errors: rename source_url to script_name (#1329)

view details

Tnarita0000

commit sha e31866a60da6edd4ed9b604caf5a9dfa6b1631ae

Change default to false Base.bool

view details

Bartek Iwańczuk

commit sha c2b91a3ef6305bb0597ec65e887bbab2d9f512a2

Flesh out open() modes (#1282)

view details

Allen Hai

commit sha b8202d2a029fdb29568510ce919978c80e49ca57

fix typo on website

view details

Ryan Dahl

commit sha 79b4140a7770e57dcdded1c7742804d810d5d922

travis: remove use_sysroot

view details

Tim Wang

commit sha 07369a6270473a2e4eb74d0c1936284d3b9558f3

Fix typo in errors.ts JSDoc

view details

Goffert van Gool

commit sha 40d6daf8240f9dc090c23f975488c424b88f120f

Read version from Cargo.toml (#1267)

view details

Kevin (Kun) "Kassimo" Qian

commit sha 2cb52cc4d19b212c4a1095ca4f668fe62b237c7a

Fix deno.open permission check (#1336)

view details

Ryan Dahl

commit sha f986eb25c575747efddcbbcbd8ab429a32312983

Merge deno_new_snapshotter behavior into deno_new (#1318)

view details

Ryan Dahl

commit sha 9cfb533c83cb350b66217cdcaea13ad7760f57e2

Check that IsolateState is thread safe. (#1321)

view details

Ryan Dahl

commit sha eff66a3c831bae9bdcec3f0e341cf61e35ed6233

Improve text on benchmark site. (#1323)

view details

迷渡

commit sha a60da6462621b2f1ddf12dda4cd205c06179c6b1

Fix typo in tests (#1342)

view details

F001

commit sha 0bb43ebbfcbc378810f75c43a2be3369729921f7

remove repeative permission checks (#1350)

view details

迷渡

commit sha 769994bd4ee352b636a6a5e58d346cf07539bfe6

`console.assert` should not throw error (#1335)

view details

Ryan Dahl

commit sha c69d2f554d05ba9e4d09af6ae451ce5676876e61

v0.2.3 - console.assert should not throw error (#1335) - Support more modes in deno.open (#1282, #1336) - Simplify code fetch logic (#1322) - readDir entry mode (#1326) - Use stderr for exceptions (#1303) - console.log formatting improvements (#1327, #1299) - Expose TooLarge error code for buffers (#1298)

view details

迷渡

commit sha 04076465cf2bda0af35fa255a56516aa6f9732ad

Add console.count and console.time (#1358)

view details

Ryan Dahl

commit sha 1e54f1d47362308d7eabb02b3ddaa1f670e4ca08

Remove from test_cc SnapshotterInitializesCorrectly (#1361) Unfortunately V8 has a debug-only assert that checks that a SnapshotCreator actually created a snapshot: https://github.com/denoland/deno_third_party/blob/7d8c9aa769778140e1619f545e706bf34545509e/v8/src/api.cc#L571 This was not being triggered in Linux & Mac debug builds because we were using the prebuilt release V8 build. It was being triggered in Windows debug build because there is a prebuilt v8_debug.lib. However the Windows error went unnoticed because we only run release builds in CI.

view details

Kitson Kelly

commit sha 91a41ca124ffb6e9c025ca2cb35121cca139083c

Add URL implementation (#1359)

view details

Ryan Dahl

commit sha 0481d6c2c05eedbab289a85d8bfe4b909013491d

Enable jumbo build in release. (#1362)

view details

push time in 2 months

issue closedF001/rust_book_feedback

P71示例结果slice2不对。

slice2的结果应该是 Length: 2 1 2

不是 Length: 2 3 4

closed time in 2 months

style7en

issue commentF001/rust_book_feedback

P71示例结果slice2不对。

我又试验了一下,应该没错,确实是 [3, 4]。 请注意,slice2 是从 slice 截取的,而不是从 arr 截取的。如果 slice 是 [3, 4, 5],那么它的前两个显然应该是 [3, 4]。

@style7en 如果我的解释有问题,请回复。

style7en

comment created time in 2 months

issue commentrust-lang/rust

Resolve `await` syntax

I have an idea that adding "pipe operators" like F#, then users can use either prefix or postfix (with explicit syntax difference).

// use `|>` for instance, Rust can choose other sigils if there are conflicts with current syntax
await expr
expr |> await

// and we can use this operator on normal function calls too
f(g(h(x))) 
x |> h |> g |> f
// this is more convenient than "postfix macro"
x.h!().g!().f!()
cramertj

comment created time in 3 months

more