Skip to content

Instantly share code, notes, and snippets.

Erik Ernst eernstg

  • Google
  • Aarhus, Denmark
Block or report user

Report or block eernstg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View delegate.dart
abstract class Person {
String name;
String address;
}
class DelegatorPerson implements Person {
DelegateePerson delegatee;
DelegatorPerson(this.delegatee);
String get name => delegatee.name(this);
set name(String value) => delegatee.nameSet(this, value);
@eernstg
eernstg / main.dart
Last active Nov 4, 2019
Code for comment on 'How language features affect OO design'
View main.dart
main() {
new Dog().feed("some food");
}
abstract class Pet {
void feed(String food);
void pet();
}
class Dog = Pet with FeedableDog, PettableDog;
@eernstg
eernstg / int-to-double.md
Last active Aug 14, 2018
Dart Feature Specification: Evaluating integer literals as double values
View int-to-double.md
View Error during build
________ running '/usr/bin/python sdk/tools/generate_buildfiles.py' in '/usr/local/google/home/eernst/devel/dart/work'
Command failed: /usr/local/google/home/eernst/devel/dart/work/sdk/buildtools/linux-x64/gn gen out/DebugIA32 --args=dart_zlib_path="//runtime/bin/zlib" exclude_kernel_service=false is_product=false dart_runtime_mode="develop" dart_stripped_binary="exe.stripped/dart" use_goma=false dart_platform_sdk=false dart_use_wheezy_sysroot=true is_msan=false is_release=false is_clang=true dart_target_arch="ia32" dart_use_tcmalloc=true goma_dir="None" dart_debug=true host_cpu="x86" dart_snapshot_kind="script" is_tsan=false target_os="linux" dart_use_fallback_root_certificates=true target_cpu="x86" is_asan=false is_debug=true
output: ERROR at //build/dart/dart_action.gni:232:11: Assignment had no effect.
"$_dart_root/tools/sdks/dart-sdk/bin/snapshots/kernel-service.dart.snapshot"
^---------------------------------------------------------------------------
You set the variable "dfe" here
@eernstg
eernstg / extreme-upper-lower-bounds.md
Last active May 22, 2018
Dart 2 feature specification of top/bottom type upper and lower bounds
View extreme-upper-lower-bounds.md

This document may be obsolete, or it may be a proposed new version; if in doubt please consider the version in the SDK repository (which may not yet exist).

Feature Specification: Upper and Lower Bounds for Extreme Types

Owner: eernst@

Status: Under discussion.

View main.dart
bool b = false;
void doWork(int i) => print("Do work ($i)");
void bailOut(int i) => print("Bail out ($i)");
void acquire() => print("Acquire the resource");
void release() => print("Release the resource");
// Consider: We want to simplify the following control flow.
@eernstg
eernstg / generic-function-instantiation.md
Last active Apr 5, 2018
Dart 2 feature specification of generic function instantiation
View generic-function-instantiation.md

This document may be obsolete, or it may be a proposed new version; if in doubt please consider the version in the SDK repository (which may not yet exist).

Generic Function Instantiation

Author: eernst@.

Version: 0.3 (2018-04-05)

@eernstg
eernstg / dynamic-members.md
Last active Sep 4, 2018
Static analysis of members of dynamic
View dynamic-members.md

This document may be obsolete, or it may be a proposed new version; if in doubt please consider the version in the SDK repository (which may not yet exist).

Typing of members of dynamic

Author: eernst@.

Version: 0.2 (2018-09-04)

@eernstg
eernstg / interface-conflicts.md
Last active Apr 16, 2018
Dart 2 feature specification of interface conflict management
View interface-conflicts.md

This document may be obsolete, or it may be a proposed new version; if in doubt please consider the version in the SDK repository (which may not yet exist).

Feature Specification: Interface Conflict Management

Owner: eernst@

Status: Under discussion.

@eernstg
eernstg / class-interfaces.md
Last active Jan 17, 2018
Feature specification of class interfaces in Dart
View class-interfaces.md

Flattened Interfaces

Author: eernst@.

Version: 0.1 (2018-01-10)

Status: Under discussion.

This document is a feature specification of the notion of a flattened interface in Dart that generalizes the concept of an

You can’t perform that action at this time.