Skip to content

feat: add operator overloading examples#62

Merged
ghimiresdp merged 4 commits intomainfrom
feature/operator-overloading
Jun 29, 2025
Merged

feat: add operator overloading examples#62
ghimiresdp merged 4 commits intomainfrom
feature/operator-overloading

Conversation

@ghimiresdp
Copy link
Copy Markdown
Owner

@ghimiresdp ghimiresdp commented Jun 29, 2025

SUMMARY

Add operator overloading examples

  • Score sheet addition and subtraction
  • Matrix Multiplication
  • Scalar Multiplication

Example:

fn main(){
  let score_a = Score {
      goals: 2,
      penalties: 2,
  };
  let score_b = Score {
      goals: 1,
      penalties: 3,
  };

  let score_c = score_a + score_b;
}

Feature Type

  • New Feature
  • Refactoring
  • Bug Fix
  • Documentation
  • Unit Tests

TARGET

  • Data Structure
  • Algorithm
  • Design Pattern
  • Problem Solving
  • Complexity Analysis
  • Advanced Concept
  • Project

@ghimiresdp ghimiresdp self-assigned this Jun 29, 2025
@ghimiresdp ghimiresdp marked this pull request as ready for review June 29, 2025 13:51
@ghimiresdp ghimiresdp added the enhancement New feature or request label Jun 29, 2025
@ghimiresdp ghimiresdp merged commit 998e41f into main Jun 29, 2025
1 check passed
@ghimiresdp ghimiresdp deleted the feature/operator-overloading branch June 29, 2025 13:53
@ghimiresdp ghimiresdp changed the title feat: add operator overloading for structs feat: add operator overloading Examples Jun 29, 2025
@ghimiresdp ghimiresdp changed the title feat: add operator overloading Examples feat: add operator overloading examples Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant