Skip to content

Any plans of replacing dynamic with Object?, List<int> with Uint8List #50874

Closed
@gintominto5329

Description

@gintominto5329

Hello,

Reading Future func() seems very bad, compared to Future<Object> func(), especially in the code, of a core library (indexed_db for example), and may depreciate the intent of code quality, towards the language team, among the readers of the code,

Also the RandomAccessFile class has methods, void writeFromSync(List<int> buffer,, int readIntoSync(List<int> buffer,, which operate on List<int> instead of Uint8List, although the former is converted into the latter, internally, so are there any plans to replace int list parameters, with byte arrays,
Maybe in dart 3,

If not, can there we some member function, like Uint8List readSync(int count), which takes a byte array, for writing to a file, maybe like void writeSync(Uint8List bytes),

Thanking you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions